//
//  Common.swift
//  TJHWeiBo
//
//  Created by tianjunhui on 16/8/9.
//  Copyright © 2016年 itcast.cn. All rights reserved.
//

import UIKit
//切换跟控制器
let WBSWITCHROOTVCNOTIFICATION = "WBSWITCHROOTVCNOTIFICATION"
//微博账号
let WBName = "18338527738"
let WBPassWd = "1725865030"


let WBAppKey = "4032289871"
let WBAppSecret = "aeb4cf5aa009b262da01124c31ff1f9c"
let WBRedirect_uri = "http://www.baidu.com"



//主体颜色
let AppThemeColor = UIColor.orangeColor()
//相当于oc中的pch文件
func rgb(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat = 0.5) -> UIColor{
    
   return UIColor (red: red/255, green: green/255, blue: blue/255, alpha: alpha)
    
}
//随机颜色
func RandomColor() ->UIColor{
    
    let r = CGFloat(random()%256)
    let g = CGFloat(random()%256)
    let b = CGFloat(random()%256)
    
    return rgb(r, green: g, blue: b)
    
    
    
    
}



